
using JTZY.Model.Goods;

namespace JTZY.Model.Order
{
    /// <summary>
    /// 订单明细表
    /// </summary>
    [SugarTable("corecmsorderitem")]
    public class Corecmsorderitem
    {
        /// <summary>
        /// 序号 
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        /// <summary>
        /// 订单ID 关联order.id 
        /// </summary>
        public string OrderId { get; set; }

        /// <summary>
        /// 商品ID 关联goods.id 
        /// </summary>
        public int GoodsId { get; set; }

        /// <summary>
        /// 货品ID 关联products.id 
        /// </summary>
        public int ProductId { get; set; }

        /// <summary>
        /// 货品编码 
        /// </summary>
        public string Sn { get; set; }

        /// <summary>
        /// 商品编码 
        /// </summary>
        public string Bn { get; set; }

        /// <summary>
        /// 商品名称 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 货品价格单价 
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 货品成本价单价 
        /// </summary>
        public decimal Costprice { get; set; }

        /// <summary>
        /// 市场价 
        /// </summary>
        public decimal Mktprice { get; set; }

        /// <summary>
        /// 图片 
        /// </summary>
        public string ImageUrl { get; set; }

        /// <summary>
        /// 数量 
        /// </summary>
        public int Nums { get; set; }

        /// <summary>
        /// 总价 
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 商品优惠总金额 
        /// </summary>
        public decimal PromotionAmount { get; set; }

        /// <summary>
        /// 促销信息 
        /// </summary>
        public string PromotionList { get; set; }

        /// <summary>
        /// 总重量 
        /// </summary>
        public decimal Weight { get; set; }

        /// <summary>
        /// 发货数量 
        /// </summary>
        public int SendNums { get; set; }

        /// <summary>
        /// 货品明细序列号存储 
        /// </summary>
        public string Addon { get; set; }

        /// <summary>
        /// 创建时间 
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新时间 
        /// </summary>
        public DateTime? UpdateTime { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string BarCode { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string SnCodes { get; set; }

        /// <summary>
        ///     退货商品数量
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int reshipNums { get; set; } = 0;

        /// <summary>
        ///     已发货的退货商品
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public int reshipedNums { get; set; } = 0;

        /// <summary>
        ///     
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public List<Orderdetail> Orderdetail { get; set; }

        [SugarColumn(IsIgnore = true)]
        public int Stock { get; set; }


        [SugarColumn(IsIgnore = true)]
        public string BrandName { get; set; }
        public decimal? Commission { get; set; }
    }
}